class CreateAccounts < ActiveRecord::Migration
  def change
    create_table :accounts do |t|
      t.string :mobile_number
      t.timestamp :last_seen
      t.references :account_group

      t.timestamps
    end
    add_index :accounts, :account_group_id
  end
end
